package com.shxzz.easy12306.services.ticket.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shxzz.easy12306.framework.starter.database.base.BaseDO;
import lombok.Data;

import java.io.Serializable;

/**
 * 车厢表
 * @TableName t_carriage
 */
@TableName(value ="t_carriage")
@Data
public class CarriageDO extends BaseDO implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 列车ID
     */
    private Long trainId;

    /**
     * 车厢号
     */
    private String carriageNumber;

    /**
     * 车厢类型
     */
    private Integer carriageType;

    /**
     * 座位数
     */
    private Integer seatCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}